﻿<?xml version="1.0" encoding="utf-8" ?>
<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:js="http://www.codeplex.com/JSClientPages/JSElements">

    <head>
        <title>The Error Page</title>
        <meta name="JSClientPage" content="JSClientPageError" />
    </head>
    <body>
        <div class="jscp-error">
            <div class="jscp-header">
                <span class="jscp-technology">JavaScript Client Pages</span>
                <span class="jscp-fatal-error">Fatal Error</span>
            </div>
            <div class="jscp-body">
                <h1>Error Details</h1>
                <div class="jscp-error-message">
                    <p>
                        The JavaScript Client Pages engine encountered a fatal error. This
                        page will not be displayed properly until the error is resolved.
                    </p>
                    <p class="jscp-message-text">
                        <js:output value="input.message" />
                    </p>
                </div>
                <js:condition>
                    <js:if>input.stackTrace &amp;&amp; input.stackTrace.length > 0</js:if>
                    <js:then>
                        <h1>Debugging Information</h1>
                        <div class="jscp-stack-trace">
                            <js:table>
                                <thead>
                                    <tr>
                                        <th>File</th>
                                        <th>Method</th>
                                        <th>Line</th>
                                    </tr>
                                </thead>
                                <js:tbody>
                                    <js:forEach collection="input.stackTrace" item="frame">
                                        <tr>
                                            <td>
                                                <js:output value="frame.file" />
                                            </td>
                                            <td>
                                                <js:output value="frame.method"/>
                                            </td>
                                            <td>
                                                <js:output value="frame.line"/>
                                            </td>
                                        </tr>
                                    </js:forEach>
                                </js:tbody>
                            </js:table>
                        </div>
                    </js:then>
                    <js:else>
                        <h1>Debugging Information</h1>
                        <p>
                            Unfortunately, there is no standard way to extract a stack trace
                            from a JavaScript exception. However, some browsers provide 
                            proprietary extensions for this purpose.
                        </p>
                        <p>
                            In this release, stack traces are supported in Gecko-based 
                            browsers, such as <a href="http://www.firefox.com/">Mozilla Firefox</a>
                        </p>
                    </js:else>
                </js:condition>
            </div>
            <div class="jscp-footer">
                <span class="jscp-technology-name">DiXon-JSClientPages</span>
                <span class="jscp-copyright">&#169; 2008 by Artem Ploujnikov. All Rights Reserved.</span>
            </div>
        </div>
    </body>
</html>